package com.project.demo.controller;

import com.project.demo.service.LandService;
import com.project.demo.vo.LandVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LandController {
    @Autowired
    private  LandService landService;
    @RequestMapping("/land")
    public LandVo land(Integer page,Integer limit){
        return landService.FindLandVo(page, limit);
    }
    @RequestMapping("/land1")
    public LandVo land1(){
        return landService.FindAllLandVo();
    }
    @RequestMapping("/land1/{name}")
    public Integer deleteVo(@PathVariable("name") Integer name){
        return landService.deleteVo(name);
    }
}
